package com.zhj.leetcode;

/**
 * 力扣705 设计一个Set
 * @author zhj
 */
public class Test705 {

    public static void main(String[] args) {

    }
}
class MyHashSet {
    private boolean[] set;

    public MyHashSet() {
        set = new boolean[100000];
    }

    public void add(Integer key) {
        set[key] = true;
    }

    public void remove(Integer key) {
        set[key] = false;
    }

    public boolean contains(Integer key) {
        return set[key];
    }
}
